using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.SceneManagement;
using Qframework;

namespace platformshoot
{
    public class ShakeCameraCommand : AbstractCommand
    {
        private readonly float intensity;

        public ShakeCameraCommand(float intensity)
        {
            this.intensity = intensity;
        }

        protected override void OnExecute()
        {
            this.SendEvent(new CameraShakeEvent
            {
                Intensity = intensity
            });
        }
    }
}